package com.input4hua.decorator;

import com.input4hua.decorator.decorator.DecoratorImpl1;
import com.input4hua.decorator.decorator.DecoratorImpl2;

/**
 * Created by jiahua.hu on 2019/3/3.
 */
public class Main {
    public static void main(String[] args) {
        Component component = new ObjComponent();

        component = new DecoratorImpl1(component);

        component = new DecoratorImpl2(component);

        component.doSomeThing();
    }
}